package com.jack.handlers;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
@RequestMapping("/test")
public class MyController {
	@RequestMapping("/myAjax3.do")
	@ResponseBody
	public Object doAjax3(String name,int age) {
		System.out.println("name:"+name);
		System.out.println("age:"+age);
		Map<String,Student> map=new HashMap<String,Student>();
		map.put("stu1", new Student("lisi", 24));
		map.put("stu2", new Student("wangwu", 25));
		return map;
	}
}
